package com.juyu.miliao.api.domain.vo;

import com.juyu.miliao.api.validator.common.Save;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author xuanqicheng
 * @create 2019-07-15:48
 */
@Data
@Accessors(chain = true)
public class NightChatInTheSameCityVideoCommentVo {

    private String id;
    /**
     * videoid
     */
    @NotBlank(message = "videoId 不能为空")
    private String videoId;


    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户昵称
     */
    private String nickname;

    /**
     * 评论人图片 头像
     */
    private String icon;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 评论内容
     */
    @NotBlank(groups = Save.class, message = "评论内容不能为空")
    private String content;

    private LocalDateTime createTime;
}
